!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("vue-split-panel",[],e):"object"==typeof exports?exports["vue-split-panel"]=e():t["vue-split-panel"]=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=21)}([function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){t.exports=!n(1)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){"use strict";function r(t,e,n){this.$children.forEach(function(i){i.$options.name===t?i.$emit.apply(i,[e].concat(n)):r.apply(i,[t,e].concat([n]))})}Object.defineProperty(e,"__esModule",{value:!0}),e.default={methods:{dispatch:function(t,e,n){for(var r=this.$parent||this.$root,i=r.$options.name;r&&(!i||i!==t);)(r=r.$parent)&&(i=r.$options.name);r&&r.$emit.apply(r,[e].concat(n))},broadcast:function(t,e,n){r.call(this,t,e,n)}}}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,n){var r=n(3),i=n(0),o=n(28),s=n(32),u=function(t,e,n){var a,c,f,l=t&u.F,p=t&u.G,d=t&u.S,h=t&u.P,v=t&u.B,g=t&u.W,m=p?i:i[e]||(i[e]={}),y=m.prototype,b=p?r:d?r[e]:(r[e]||{}).prototype;p&&(n=e);for(a in n)(c=!l&&b&&void 0!==b[a])&&a in m||(f=c?b[a]:n[a],m[a]=p&&"function"!=typeof b[a]?n[a]:v&&c?o(f,r):g&&b[a]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):h&&"function"==typeof f?o(Function.call,f):f,h&&((m.virtual||(m.virtual={}))[a]=f,t&u.R&&y&&!y[a]&&s(y,a,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(27);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(37),i=n(30);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(8),i=n(6);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(6);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t,e,n,r){var i,o=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(i=t,o=t.default);var u="function"==typeof o?o.options:o;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns),n&&(u._scopeId=n),r){var a=Object.create(u.computed||null);Object.keys(r).forEach(function(t){var e=r[t];a[t]=function(){return e}}),u.computed=a}return{esModule:i,exports:o,options:u}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(53),o=r(i),s=n(52),u=r(s);o.default.SplitArea=u.default,e.default=o.default},function(t,e,n){t.exports={default:n(22),__esModule:!0}},function(t,e,n){t.exports={default:n(23),__esModule:!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default={name:"SplitArea",mixins:[i.default],props:{size:{type:Number,default:50},minSize:{type:Number,default:100}},computed:{classes:function(){return"split split-"+this.$parent.direction}},watch:{size:function(t){this.$parent.changeAreaSize()},minSize:function(t){this.$parent.changeAreaSize()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=r(i),s=n(51),u=r(s);e.default={name:"Split",mixins:[o.default],props:{direction:{type:String,default:"horizontal"},gutterSize:{type:Number,default:8}},data:function(){return{elements:[],sizes:[],minSizes:[],instance:null}},methods:{init:function(){var t=this;null!==t.instance&&t.instance.destroy(),t.instance=null,t.instance=(0,u.default)(t.elements,{direction:t.direction,sizes:t.sizes,minSize:t.minSizes,gutterSize:t.gutterSize,cursor:"horizontal"===t.direction?"col-resize":"row-resize",onDrag:function(){t.$emit("onDrag",t.instance.getSizes())},onDragStart:function(){t.$emit("onDragStart",t.instance.getSizes())},onDragEnd:function(e){t.$emit("onDragEnd",t.instance.getSizes())}})},changeAreaSize:function(){var t=this;t.sizes=[],t.minSizes=[],t.$slots.default.forEach(function(e){e.tag&&e.tag.indexOf("SplitArea")>-1&&(t.sizes.push(e.componentInstance.size),t.minSizes.push(e.componentInstance.minSize))}),t.init()},reset:function(){this.init()},getSizes:function(){return this.instance.getSizes()}},mounted:function(){var t=this;t.elements=[],t.sizes=[],t.minSizes=[],t.$slots.default.forEach(function(e){e.tag&&e.tag.indexOf("SplitArea")>-1&&(t.elements.push(e.elm),t.sizes.push(e.componentInstance.size),t.minSizes.push(e.componentInstance.minSize))}),t.init()},watch:{direction:function(t){this.init()},gutterSize:function(t){this.init()}}}},function(t,e,n){"use strict";t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:t.classes},[t._t("default")],2)},staticRenderFns:[]}},function(t,e,n){"use strict";t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"split"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(15),o=r(i),s=n(16),u=r(s),a=n(14),c=r(a),f={Split:c.default,SplitArea:c.default.SplitArea},l=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,u.default)(f).forEach(function(e){t.component(e,f[e])})};"undefined"!=typeof window&&window.Vue&&l(window.Vue),t.exports=(0,o.default)(f,{install:l})},function(t,e,n){n(47),t.exports=n(0).Object.assign},function(t,e,n){n(48),t.exports=n(0).Object.keys},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(11),i=n(44),o=n(43);t.exports=function(t){return function(e,n,s){var u,a=r(e),c=i(a.length),f=o(s,c);if(t&&n!=n){for(;c>f;)if((u=a[f++])!=u)return!0}else for(;c>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(24);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(4),i=n(3).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(35),i=n(40);t.exports=n(2)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports=!n(2)&&!n(1)(function(){return 7!=Object.defineProperty(n(29)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";var r=n(9),i=n(36),o=n(38),s=n(12),u=n(8),a=Object.assign;t.exports=!a||n(1)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=a({},t)[n]||Object.keys(a({},e)).join("")!=r})?function(t,e){for(var n=s(t),a=arguments.length,c=1,f=i.f,l=o.f;a>c;)for(var p,d=u(arguments[c++]),h=f?r(d).concat(f(d)):r(d),v=h.length,g=0;v>g;)l.call(d,p=h[g++])&&(n[p]=d[p]);return n}:a},function(t,e,n){var r=n(25),i=n(33),o=n(45),s=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(31),i=n(11),o=n(26)(!1),s=n(41)("IE_PROTO");t.exports=function(t,e){var n,u=i(t),a=0,c=[];for(n in u)n!=s&&r(u,n)&&c.push(n);for(;e.length>a;)r(u,n=e[a++])&&(~o(c,n)||c.push(n));return c}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(7),i=n(0),o=n(1);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(42)("keys"),i=n(46);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(3),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e,n){var r=n(10),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(10),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(7);r(r.S+r.F,"Object",{assign:n(34)})},function(t,e,n){var r=n(12),i=n(9);n(39)("keys",function(){return function(t){return i(r(t))}})},function(t,e,n){e=t.exports=n(50)(),e.push([t.i,"\n.split {\n  -webkit-box-sizing: border-box;\n     -moz-box-sizing: border-box;\n          box-sizing: border-box;\n  overflow-y: auto;\n  overflow-x: hidden;\n  height: 100%;\n  width: 100%;\n}\n.gutter {\n  background-color: #eee;\n  background-repeat: no-repeat;\n  background-position: 50%;\n}\n.gutter.gutter-horizontal {\n  cursor: col-resize;\n  background-image: url('');\n}\n.gutter.gutter-vertical {\n  cursor: row-resize;\n  background-image: url('');\n}\n.split.split-horizontal, .gutter.gutter-horizontal {\n  height: 100%;\n  float: left;\n}\n",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var s=e[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(t,e,n){/*! Split.js - v1.3.5 */
!function(e,n){t.exports=n()}(0,function(){"use strict";var t=window,e=t.document,n="addEventListener",r="removeEventListener",i="getBoundingClientRect",o=function(){return!1},s=t.attachEvent&&!t[n],u=["","-webkit-","-moz-","-o-"].filter(function(t){var n=e.createElement("div");return n.style.cssText="width:"+t+"calc(9px)",!!n.style.length}).shift()+"calc",a=function(t){return"string"==typeof t||t instanceof String?e.querySelector(t):t};return function(c,f){function l(t,e,n){var r=C(z,e,n);Object.keys(r).forEach(function(e){return t.style[e]=r[e]})}function p(t,e){var n=$(z,e);Object.keys(n).forEach(function(e){return t.style[e]=n[e]})}function d(t){var e=A[this.a],n=A[this.b],r=e.size+n.size;e.size=t/this.size*r,n.size=r-t/this.size*r,l(e.element,e.size,this.aGutterSize),l(n.element,n.size,this.bGutterSize)}function h(t){var e;this.dragging&&(e="touches"in t?t.touches[0][S]-this.start:t[S]-this.start,e<=A[this.a].minSize+k+this.aGutterSize?e=A[this.a].minSize+this.aGutterSize:e>=this.size-(A[this.b].minSize+k+this.bGutterSize)&&(e=this.size-(A[this.b].minSize+this.bGutterSize)),d.call(this,e),f.onDrag&&f.onDrag())}function v(){var t=A[this.a].element,e=A[this.b].element;this.size=t[i]()[z]+e[i]()[z]+this.aGutterSize+this.bGutterSize,this.start=t[i]()[x]}function g(){var e=this,n=A[e.a].element,i=A[e.b].element;e.dragging&&f.onDragEnd&&f.onDragEnd(),e.dragging=!1,t[r]("mouseup",e.stop),t[r]("touchend",e.stop),t[r]("touchcancel",e.stop),e.parent[r]("mousemove",e.move),e.parent[r]("touchmove",e.move),delete e.stop,delete e.move,n[r]("selectstart",o),n[r]("dragstart",o),i[r]("selectstart",o),i[r]("dragstart",o),n.style.userSelect="",n.style.webkitUserSelect="",n.style.MozUserSelect="",n.style.pointerEvents="",i.style.userSelect="",i.style.webkitUserSelect="",i.style.MozUserSelect="",i.style.pointerEvents="",e.gutter.style.cursor="",e.parent.style.cursor=""}function m(e){var r=this,i=A[r.a].element,s=A[r.b].element;!r.dragging&&f.onDragStart&&f.onDragStart(),e.preventDefault(),r.dragging=!0,r.move=h.bind(r),r.stop=g.bind(r),t[n]("mouseup",r.stop),t[n]("touchend",r.stop),t[n]("touchcancel",r.stop),r.parent[n]("mousemove",r.move),r.parent[n]("touchmove",r.move),i[n]("selectstart",o),i[n]("dragstart",o),s[n]("selectstart",o),s[n]("dragstart",o),i.style.userSelect="none",i.style.webkitUserSelect="none",i.style.MozUserSelect="none",i.style.pointerEvents="none",s.style.userSelect="none",s.style.webkitUserSelect="none",s.style.MozUserSelect="none",s.style.pointerEvents="none",r.gutter.style.cursor=U,r.parent.style.cursor=U,v.call(r)}function y(t){t.forEach(function(e,n){if(n>0){var r=D[n-1],i=A[r.a],o=A[r.b];i.size=t[n-1],o.size=e,l(i.element,i.size,r.aGutterSize),l(o.element,o.size,r.bGutterSize)}})}function b(){D.forEach(function(t){t.parent.removeChild(t.gutter),A[t.a].element.style[z]="",A[t.b].element.style[z]=""})}void 0===f&&(f={});var z,S,x,A,w=a(c[0]).parentNode,E=t.getComputedStyle(w).flexDirection,O=f.sizes||c.map(function(){return 100/c.length}),_=void 0!==f.minSize?f.minSize:100,j=Array.isArray(_)?_:c.map(function(){return _}),M=void 0!==f.gutterSize?f.gutterSize:10,k=void 0!==f.snapOffset?f.snapOffset:30,G=f.direction||"horizontal",U=f.cursor||("horizontal"===G?"ew-resize":"ns-resize"),B=f.gutter||function(t,n){var r=e.createElement("div");return r.className="gutter gutter-"+n,r},C=f.elementStyle||function(t,e,n){var r={};return"string"==typeof e||e instanceof String?r[t]=e:r[t]=s?e+"%":u+"("+e+"% - "+n+"px)",r},$=f.gutterStyle||function(t,e){return n={},n[t]=e+"px",n;var n};"horizontal"===G?(z="width","clientWidth",S="clientX",x="left","paddingLeft"):"vertical"===G&&(z="height","clientHeight",S="clientY",x="top","paddingTop");var D=[];return A=c.map(function(t,e){var r,o={element:a(t),size:O[e],minSize:j[e]};if(e>0&&(r={a:e-1,b:e,dragging:!1,isFirst:1===e,isLast:e===c.length-1,direction:G,parent:w},r.aGutterSize=M,r.bGutterSize=M,r.isFirst&&(r.aGutterSize=M/2),r.isLast&&(r.bGutterSize=M/2),"row-reverse"===E||"column-reverse"===E)){var u=r.a;r.a=r.b,r.b=u}if(!s&&e>0){var f=B(e,G);p(f,M),f[n]("mousedown",m.bind(r)),f[n]("touchstart",m.bind(r)),w.insertBefore(f,o.element),r.gutter=f}0===e||e===c.length-1?l(o.element,o.size,M/2):l(o.element,o.size,M);var d=o.element[i]()[z];return d<o.minSize&&(o.minSize=d),e>0&&D.push(r),o}),s?{setSizes:y,destroy:b}:{setSizes:y,getSizes:function(){return A.map(function(t){return t.size})},collapse:function(t){if(t===D.length){var e=D[t-1];v.call(e),s||d.call(e,e.size-e.bGutterSize)}else{var n=D[t];v.call(n),s||d.call(n,n.aGutterSize)}},destroy:b}}})},function(t,e,n){var r=n(13)(n(17),n(19),null,null);t.exports=r.exports},function(t,e,n){n(55);var r=n(13)(n(18),n(20),null,null);t.exports=r.exports},function(t,e){function n(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=f[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(u(r.parts[o],e))}else{for(var s=[],o=0;o<r.parts.length;o++)s.push(u(r.parts[o],e));f[r.id]={id:r.id,refs:1,parts:s}}}}function r(t){for(var e=[],n={},r=0;r<t.length;r++){var i=t[r],o=i[0],s=i[1],u=i[2],a=i[3],c={css:s,media:u,sourceMap:a};n[o]?n[o].parts.push(c):e.push(n[o]={id:o,parts:[c]})}return e}function i(t,e){var n=d(),r=g[g.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),g.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function o(t){t.parentNode.removeChild(t);var e=g.indexOf(t);e>=0&&g.splice(e,1)}function s(t){var e=document.createElement("style");return e.type="text/css",i(t,e),e}function u(t,e){var n,r,i;if(e.singleton){var u=v++;n=h||(h=s(e)),r=a.bind(null,n,u,!1),i=a.bind(null,n,u,!0)}else n=s(e),r=c.bind(null,n),i=function(){o(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function a(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=m(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function c(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var f={},l=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}},p=l(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),d=l(function(){return document.head||document.getElementsByTagName("head")[0]}),h=null,v=0,g=[];t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},void 0===e.singleton&&(e.singleton=p()),void 0===e.insertAt&&(e.insertAt="bottom");var i=r(t);return n(i,e),function(t){for(var o=[],s=0;s<i.length;s++){var u=i[s],a=f[u.id];a.refs--,o.push(a)}if(t){n(r(t),e)}for(var s=0;s<o.length;s++){var a=o[s];if(0===a.refs){for(var c=0;c<a.parts.length;c++)a.parts[c]();delete f[a.id]}}}};var m=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){var r=n(49);"string"==typeof r&&(r=[[t.i,r,""]]);n(54)(r,{});r.locals&&(t.exports=r.locals)}])});